package com.kamikaze;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Overtime_do_Servlet extends HttpServlet {
	private static final long serialVersionUID = 1L;

    public Overtime_do_Servlet() {
        super();

    }

	
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doPost(request,response);
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		request.setCharacterEncoding("UTF-8");
		response.setCharacterEncoding("UTF-8");
		String otd_date = request.getParameter("otd_date");
		String otd_time_begin = request.getParameter("otd_time_begin");
		String otd_time_end = request.getParameter("otd_time_end");
		String ot_number = request.getParameter("ot_number");
		String otd_note = request.getParameter("otd_note");
		String otd_number = request.getParameter("otd_number");
		Overtime_edit_do oted = new Overtime_edit_do();
		oted.edit_overtime(otd_date, otd_time_begin, otd_time_end, ot_number, otd_note, otd_number);
		response.sendRedirect("overtime_check_and_edit.jsp");
		
	}

}
